#ifndef CHARSET_H
#define CHARSET_H

#include "spriteref.h"
#include <qmap.h>

enum CharAction {STOP, WALK, ATTACK};
enum CharDirection {DOWN, LEFT, UP, RIGHT};


class Charset : public SpriteRef
{
public:
    Charset();
    Charset(const QString& imagePath, const QSize& charSize = QSize(32,32));

    void setImage(const QString& imagePath, const QSize& charSize = QSize(32,32));

    void setAction(CharAction action);
    void setAction(CharAction action, CharDirection direction);
    void setDirection(CharDirection direction);

    CharAction getAction() const;
    CharDirection getDirection() const;

private:
    static QSize m_charSize;
    CharAction m_action;
    CharDirection m_direction;
};

#endif // CHARSET_H
